package cn.hbwe.Dto;


import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class dLoginDTO {
    @Length(min = 6,message = "密码太短啦")
    private String doctorPassword;

//    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$",message = "手机号格式不对")

    @NotNull(message = "账号（个人编号）不能为空")
    @Length(max = 11, message = "账号（个人编号）长度不能超过11位")
    @Length(min = 6,message = "账号（个人编号）长度不能小于6位")
    @Pattern(regexp = "^[0-9]+$",message = "账号（个人编号）只能包含数字")
    private String doctorNo;

}
